Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Utility Functions /


JMGetCurrentEnv

Returns the current JNIEnv data structure.

struct JNIEnv* JMGetCurrentEnv (JMSessionRef session);
session
The current session.
function result
A pointer to the JNIEnv data structure.
DISCUSSION
The JMGetCurrentEnv function allows you to access the current Java Native Interface (JNI) structure. Once you have the JNIEnv structure, you can call JNI functions. The data structure JNIEnv is defined in the header file JNI.h.

You can find documentation for the Java Native Interface at the Web site

http://java.sun.com/

SEE ALSO
"Executing Java Applications".


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997